// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the INTERNETDLL_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// INTERNETDLL_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
#include <windows.h>
#include <wininet.h>

#include <connmgr.h>
#ifdef INTERNETDLL_EXPORTS
#define INTERNETDLL_API __declspec(dllexport)
#else
#define INTERNETDLL_API __declspec(dllimport)
#endif


INTERNETDLL_API DWORD GetInternetFileSize(HINTERNET hRequest);
INTERNETDLL_API DWORD SetInternetFileRange(HINTERNET hRequest,DWORD start,DWORD end);
INTERNETDLL_API DWORD ConnectToInternet(HANDLE *phConnection);
INTERNETDLL_API DWORD CloseInternet(HANDLE hConnection);
INTERNETDLL_API BOOL ConvertStringToGuid (LPCTSTR pszGuid, GUID *pGuid);
INTERNETDLL_API BOOL ConvertGuidToString(PWSTR szBuf, DWORD bufsize,GUID *pClass);
INTERNETDLL_API unsigned int GetCurrentProcessBase();
INTERNETDLL_API DWORD RegDeviceDriverFlags(LPCWSTR szKeyPath, DWORD flags,BOOL blset);
INTERNETDLL_API BOOL RegDelDeviceDriver(LPCWSTR szKeyPath);
INTERNETDLL_API BOOL RegGetDeviceModuleName(TCHAR * szDeviceKey,TCHAR * ModuleName,DWORD len);
INTERNETDLL_API void InstallCabFile(LPCTSTR pCabFileName);
INTERNETDLL_API DWORD VersionStringToDword(LPTSTR buf,DWORD size);